﻿using System;
using System.Windows.Forms;
using System.Windows.Forms.Design;

namespace HML.Design
{
    /// <summary>
    /// GroupPanelPlus控件设计模式行为
    /// </summary>
    public class GroupPanelPlusDesigner : ScrollableControlDesigner
    {
        #region 字段

        private const int WM_NCHITEST = 0x0084;

        #endregion

        #region 重写

        protected override void WndProc(ref Message m)
        {
            switch (m.Msg)
            {
                case WM_NCHITEST://恢复鼠标点击非工作区时激活控件功能
                    {
                        m.Result = new IntPtr(1);
                        return;
                    }
                default:
                    {
                        base.WndProc(ref m);
                        break;
                    }
            }
        }

        #endregion

    }
}
